Pod::Spec.new do |s|
  s.name             = 'DualMediationSDK'
  s.version          = '1.0.0-beta.21'
  s.summary          = 'Wonder iOS 双聚合 SDK'
  s.description      = '内部聚合广告 + 数据上报一体化 SDK，仅支持真机 (iOS-arm64)。'
  s.homepage         = 'https://gitee.com/wonder_ios_sdk/WD_MediationSDK_Spec'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '13710023492@163.com' => '13710023492@163.com' }

  # 通过 Git Tag 获取源码/二进制，不走 zip
  s.source           = { :git => 'https://gitee.com/wonder_ios_sdk/WD_MediationSDK_Spec.git',
                         :tag => s.version.to_s }

  s.ios.deployment_target = '13.0'
  s.swift_versions        = ['5.0', '5.9']

# ========= 交付二进制静态库 =========
# ⚠️ 删除 s.source_files，因为不再让集成方编译源码
# ⚠️ 只保留 vendored_frameworks + public_header_files
s.vendored_frameworks = 'DualMediationSDK.framework'

# 明确哪些头文件对外可见（位于 framework/Headers/ 下）
# ↓ 新增两行 ↓
s.source_files         = 'DualMediationSDK.framework/Headers/*.h'
s.public_header_files  = 'DualMediationSDK.framework/Headers/*.h'

# CocoaPods 自动把 framework 内部的 .bundle / .nib 等资源收进来，
# 不需要再额外写 resource_bundles，除非你有独立散落的资源文件
# 若之前写的 bundle 路径已无效，可直接删掉
# 拷贝 framework 根目录里所有 png
s.resources = 'DualMediationSDK.framework/*.png'
  # 仅真机构建；排除模拟器 arm64，避免 lint/集成报错
  # 仅一次性赋值即可
s.pod_target_xcconfig = {
  'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
  'OTHER_LDFLAGS'                        => '-ObjC'
}

s.user_target_xcconfig = {
  'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}

  # ========== 三方依赖（保持原版，删掉重复） ==========
s.dependency 'AFNetworking', '~> 4.0.1'

s.dependency 'IronSourceSDK', '~> 8.10.0.0'
s.dependency 'IronSourceAdQualitySDK', '~> 7.25.1'

s.dependency 'IronSourceAppLovinAdapter', '4.3.52.0'
s.dependency 'IronSourceBidMachineAdapter', '4.3.20.0'
s.dependency 'IronSourceBigoAdapter', '4.3.5.0'
s.dependency 'IronSourceChartboostAdapter', '4.3.21.0'
s.dependency 'IronSourceCSJAdapter', '4.3.13.0'
s.dependency 'IronSourceAdMobAdapter', '4.3.68.0'
s.dependency 'IronSourceHyprMXAdapter', '4.3.10.0'
s.dependency 'IronSourceInMobiAdapter', '4.3.29.1'
s.dependency 'IronSourceVungleAdapter', '4.3.45.1'
s.dependency 'IronSourceMintegralAdapter', '4.3.35.1'
s.dependency 'IronSourceMobileFuseAdapter', '~> 4.3.8.1'
s.dependency 'IronSourceMolocoAdapter', '4.3.21.0'
s.dependency 'IronSourceOguryAdapter', '4.3.3.1'
s.dependency 'IronSourcePangleAdapter', '4.3.46.1'
s.dependency 'IronSourceSmaatoAdapter', '4.3.17.1'
s.dependency 'IronSourceUnityAdsAdapter', '4.3.52.1'
s.dependency 'IronSourceVerveAdapter', '4.3.6.1'
s.dependency 'IronSourceYandexAdapter', '4.3.22.1'
s.dependency 'IronSourceFyberAdapter', '~> 4.3.44.0'
s.dependency 'zMaticoo', '1.5.4.3'
s.dependency 'TaurusxAdsSDK', '1.6.0'
s.dependency 'TaurusxAdsSDK/IronSourceAdapter', '1.6.0'
s.dependency 'Bidon', '0.8.0'
s.dependency 'ISBidonCustomAdapter', '0.8.0'
s.dependency 'IronSourceFacebookAdapter', '4.3.51.0'
s.dependency 'IronSourcePubMaticAdapter', '~> 2.0.0'

s.dependency 'AppLovinSDK', '13.1.0'

s.dependency 'AppLovinMediationBidMachineAdapter', '3.4.0.0.0'
s.dependency 'AppLovinMediationBigoAdsAdapter', '4.7.0.1'
s.dependency 'AppLovinMediationFyberAdapter', '~> 8.3.8.0'
s.dependency 'AppLovinMediationGoogleAdManagerAdapter', '12.7.0.0'
s.dependency 'AppLovinMediationGoogleAdapter', '12.7.0.0'
s.dependency 'AppLovinMediationIronSourceAdapter', '8.10.0.0.0'
s.dependency 'AppLovinMediationMintegralAdapter', '7.7.8.0.0'
s.dependency 'AppLovinMediationVungleAdapter', '7.5.1.0'
s.dependency 'AppLovinMediationMolocoAdapter', '3.11.0.0'
s.dependency 'AppLovinMediationByteDanceAdapter', '7.2.0.5.0'
s.dependency 'AppLovinMediationSmaatoAdapter', '22.9.3.0'
s.dependency 'AppLovinMediationUnityAdsAdapter', '4.15.0.0'
s.dependency 'AppLovinMediationYandexAdapter', '7.15.1.0'
s.dependency 'AppLovinMediationVerveAdapter', '3.6.0.0'
s.dependency 'AppLovinMediationHyprMXAdapter', '6.4.2.0.0'
s.dependency 'AppLovinMediationCSJAdapter', '6.7.1.6.0'
s.dependency 'AppLovinMediationInMobiAdapter', '10.8.3.0'
s.dependency 'AppLovinMediationOguryPresageAdapter', '5.0.2.0'
s.dependency 'AppLovinMediationMobileFuseAdapter', '~> 1.9.2.1'
s.dependency 'AppLovinMediationChartboostAdapter', '9.9.0.0'
s.dependency 'AppLovinMediationTopOnAdxAdapter', '6.4.28'
s.dependency 'Bidon', '0.8.0'
s.dependency 'AppLovinMediationBidonAdapter', '0.8.0'
s.dependency 'TaurusxAdsSDK', '1.6.0'
s.dependency 'TaurusxAdsSDK/AppLovinAdapter', '1.6.0'
s.dependency 'AppLovinMediationFacebookAdapter', '~> 6.20.1.0'
s.dependency 'AppLovinPubMaticAdapter', '~> 2.0.0'
s.dependency 'AppLovinMediationPubMaticAdapter', '~> 4.10.0.0'

s.dependency 'Google-Mobile-Ads-SDK', '~> 12.7.0'

s.dependency 'FBSDKCoreKit', '~> 18.0.0'
s.dependency 'FBSDKLoginKit', '~> 18.0.0'
s.dependency 'FBSDKShareKit', '~> 18.0.0'

s.dependency 'Firebase', '~> 11.15.0'
s.dependency 'Firebase/Analytics', '~> 11.15.0'
s.dependency 'Firebase/Messaging', '~> 11.15.0'
s.dependency 'Firebase/Crashlytics', '~> 11.15.0'
s.dependency 'Firebase/DynamicLinks', '~> 11.15.0'
s.dependency 'Firebase/Crashlytics', '~> 11.15.0'
s.dependency 'FirebaseRemoteConfig', '~> 11.15.0'
s.dependency 'GoogleUserMessagingPlatform', '~> 3.0.0'

s.dependency 'Adjust', '~> 5.4.6'
s.dependency 'GoogleAdsOnDeviceConversion', '2.1.0'
s.dependency 'Adjust/AdjustGoogleOdm'

s.dependency 'ThinkingSDK', '~> 3.1.1'
end
